package com.cybertron.ironhide.manage.common.job;

import javax.annotation.Resource;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Component;

import com.cybertron.ironhide.manage.service.ProductService;

@Component
public class IndexJob {

	private Log logger = LogFactory.getLog(IndexJob.class);

	@Resource
	private ProductService productService;

	public void run() {
		logger.info("index gen ....");
		productService.updateIndex();
	}

}
